package org.unicen.exa.io.worker.assigner.input;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.unicen.exa.io.worker.assigner.core.model.JobWorking;
import org.unicen.exa.io.worker.assigner.dao.JobWorkingDao;

@Component
public class EntropiaInstances implements Runnable {

	private Logger logger = Logger.getLogger(EntropiaInstances.class);

	private @Autowired JobWorkingDao<JobWorking> jobWorkingDao;
	private int timeInSecond;

//	public EntropiaInstances(String str, JobWorkingDao<JobWorking> jobWorkingDao, int timeInSecond) {
//		super(str);
//		this.timeInSecond = timeInSecond;
//		this.jobWorkingDao = jobWorkingDao;
//
//	}
	
	
	@Value("#{appProperties.timeInSecond}")
	public void setTimeInSecond(int timeInSecond) {
		this.timeInSecond = timeInSecond;
	}

	
	public void run() {
		// Aca deberia que tirar instancias(stop o tirar) o finalizar jobs
		// aleatoriamente1

	}

}
